#include<bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
	for (int i = 1; i <= 1000; i++) {
		int sum = 0;
		vector<int> yinzi;
		for (int j = 1; j < i; j++) {
			if (i % j == 0) {
				sum += j;
				yinzi.push_back(j);
			}
		}
		if (sum == i) {
			cout << i << "=";
			for (int i = 0; i < yinzi.size(); i++) {
				if (i != yinzi.size() - 1)
					cout << yinzi[i] << "+";
				else
					cout << yinzi[i];
			}
			cout << endl;
		}
	}
	return 0;
}
